<?php defined('SYSPATH') or die('No direct script access.');

class File extends Kohana_File {
    public static function check_meme($filename,$allowed_types=null)
    {
        //var_dump($filename); die();
        if (!is_array($allowed_types) || count($allowed_types)<1)
        {
            $allowed_types=array(
                'image/jpeg',
                'image/png'
            );
        }
        if (in_array(mime_content_type($filename),$allowed_types)) return true; return false;

    }


}